package com.shipwe.loans.utils.event

import com.shipwe.loans.http.HttpHelper
import com.shipwe.loans.http.IHttpCallback
import com.shipwe.loans.utils.log.ShipweLogger
import org.json.JSONObject

/**
 * Shipwe
 * @Author wwdeng
 * @CreateTime: 2024/11/18 19:38
 * @Annotation：埋点事件处理类
 */
object AppEventPointHelper {

    /**
     * 添加打点事件
     */
    fun appEventPointRequestAction(eventName: String, remark: String = "") {
        ShipweLogger.e(">>>>>>>>>>>>>>eventName：$eventName，remark：$remark")

        HttpHelper.addPoint(eventName,remark,this,object : IHttpCallback{
            override fun onRequestSuccess(data: JSONObject) {
            }

            override fun onRequestError(error: JSONObject) {
            }

            override fun onRequestFinish() {
            }
        })
    }
}